<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Service</title>
</head>

<body>
    <div data-ng-app="myApp" data-ng-controller="myCtrl">
        <h1>AngularJS服务</h1>
        <h3>$location服务</h3>
        <span>当前网页地址：{{myUrl}}</span>
        <h3>$timeout服务</h3>
        <span>该信息5秒后变化：{{msg}}</span>
        <h3>$interval服务</h3>
        <span>当前时间：{{time}}</span>
        <h3>自定义服务(二进制转换)</h3>
        <span>原值：{{num}}</span><br />
        <span>结果：{{numToBinary}}</span><br />
        <h3>$http服务(该服务需要在http服务器上使用才能显示结果)</h3>
        <span>当前网页信息：{{myPage}}</span>
        


    </div>
    <script src="../node_modules/angular/angular.min.js"></script>
    <script src="serivce.js"></script>
</body>

</html>
